package bookshare;

public class User {
    
    private String mNachname;
    private String mVorname;
    private String mMatrikelnummer;
    private String mPasswort;
    private String mEmail;
    private int mUserID;

	public User(){
		
	}

	public User(String mMatrikelnummer, String mPasswort, String mVorname, String mNachname, String mEmail) {
		this.mMatrikelnummer = mMatrikelnummer;
		this.mPasswort = mPasswort;
		this.mVorname = mVorname;
		this.mNachname = mNachname;
		this.mEmail = mEmail;
        }
        
        public void setUserID(int mUserID) {
            this.mUserID = mUserID;
        }
        
        public int getUserID() {
            return this.mUserID;
        }
        
	public void addUser() {
		SQLabfrage newsave = new SQLabfrage();
		newsave.saveUser(mMatrikelnummer, mPasswort, mVorname, mNachname, mEmail);
	}
        
	public void setNachname(String mNachname) {
		this.mNachname = mNachname;
	}
        
	public String getNachname() {
            return this.mNachname;
	}
        
	public void setVorname(String mVorname) {
		this.mVorname = mVorname;
	}
        
	public String getVorname() {
		return this.mVorname;
	}
        
	public void setPasswort(String mPasswort) {
		this.mPasswort = mPasswort;
	}
        
	public String getPasswort() {
		return this.mPasswort;
	}
	
	public void setMatrikelnummer(String mMatrikelnummer) {
		this.mMatrikelnummer = mMatrikelnummer;
	}
        
	public String getMatrikelnummer() {
		return this.mMatrikelnummer;
	}
	
	public void setEmail(String mEmail) {
		this.mEmail = mEmail;
	}
        
	public String getEmail() {
		return this.mEmail;
	}
	
	
}
